package de.slothsoft.wasbinich.swingclient;

import java.awt.BorderLayout;

import javax.swing.JApplet;

import de.slothsoft.wasbinich.core.WasBinIch;
import de.slothsoft.wasbinich.core.WasBinIch.Version;
import de.slothsoft.wasbinich.core.database.Database;
import de.slothsoft.wasbinich.swingclient.control.MainPanel;
import de.slothsoft.wasbinich.swingclient.database.SwingWebserviceDatabase;

public class WasBinIchApplet extends JApplet {

    private static final long serialVersionUID = 3484396175206950530L;

    @Override
    public void init() {
	WasBinIch.initVersion(Version.APPLET);
	Database.initInstance(new SwingWebserviceDatabase());

	setLayout(new BorderLayout());
	WasBinIchSwingClient.setMainPanel(new MainPanel());
	add(WasBinIchSwingClient.getMainPanel(), BorderLayout.CENTER);
    }
}
